/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('iframe_custom_theme', {
    ct_id: {
      type: DataTypes.CHAR(36),
      allowNull: false,
      primaryKey: true
    },
    ct_title: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    ct_sign: {
      type: DataTypes.STRING(50),
      allowNull: false,
      unique: true
    },
    ct_system_name: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    ct_org_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '0'
    },
    ct_login_bg: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    ct_logo_b: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    ct_logo_s: {
      type: DataTypes.STRING(255),
      allowNull: true
    },
    ct_create_time: {
      type: DataTypes.DATE,
      allowNull: true
    }
  }, {
    tableName: 'iframe_custom_theme'
  });
};
